$ = window.jQuery
$$ = window.BASE
$ () ->
  $$.defaultGradientBG = 'uiBlackGradientBG'
  $$.defaultBoxShadow = 'uiBlackBoxShadow'
  $ () ->
    $('#welcomeMsg').dialog {
      title : '个人感言',
      closable : false
    }

    $('#articleList').dialog {
      title : '文章分享',
      closable : false
    }

    $('#articleList .article .controlBtn').buttonSet()

    $('#messageBoard').list {
      title : '留言板'
    }

    $('#technologyGuide').dialog {
      title : '我的推荐'
      closable : false
    }
    $('#technologyGuide a').each () ->
      obj = $ @
      tipContent = obj.attr 'base-tip'
      tipObj = $('<div class="technologyGuideTip" />').html(tipContent).appendTo 'body'
      tipObj.tip {
        target : obj
        direction : 'bottom'
        backgroundColor : '#4d4c4c'
        borderColor : '#4d4c4c'
      }

    $('#recommendArticle').dialog {
      title : '推荐文章',
      closable : false
    }
    $('#plugInList').dialog {
      title : '推荐插件',
      closable : false
    }

